﻿@{
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
    ViewBag.Title = "系统通知模板信息管理";
}

@section htmlhead{
    <link href="~/Content/assets/css/Layout/css/main.css" rel="stylesheet" />
    <link href="~/Content/assets/css/plugin/validator.css" rel="stylesheet" />
}
@model LY.Entity.S_SysTemplate

<div class="container">

    <div id="forms" class="mt10">
        <div class="box">
            <div class="box_border">
                <div class="box_top"><b class="pl15">系统通知模板信息管理</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;带“ <span style="color: red">*</span> ”标示为必填项</div>
                <div class="box_center">
                    <form  id="frmEdit" method="post" action="@Url.Action("TemplateSave")" role="form" class="jqtransform">
                        <input id="Id" name="Id" value="@Model.Id" type="hidden" />

                        <table class="form_table pt15 pb15" style="width: 100%;" border="0">
                            <tr>
                                <td class="td_right"><span style="color: red">*</span>&nbsp;模板类型：</td>
                                <td class="">
                                    @Html.ResourceDropDownList("TemplateType", "TemplateType", @Model.TemplateType, new {@class = "wh160 select" })
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red">*</span>&nbsp;模板标题：</td>
                                <td class="">
                                    <input type="text" id="TemplateName" name="TemplateName" value="@Model.TemplateName" class="input-text lh30" size="40" placeholder="请输入模板标题" >
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red">*</span>&nbsp;调用别名：</td>
                                <td class="">
                                    <input type="text" id="TemplateCode" name="TemplateCode" value="@Model.TemplateCode" class="input-text lh30" size="40" placeholder="请输入别名" >
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red">*</span>&nbsp;模板内容：</td>
                                <td class=""> 
                                    @Html.TextAreaFor(model=>model.TemplateContent,6,10,new {@style="height: 260px; width: 90%"})
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"></td>
                                <td class=""></td>
                            </tr>
                            <tr>
                                <td class="td_right">&nbsp;</td>
                                <td class="">
                                    <input type="button" id="btnSave" name="button" class="btn btn82 btn_save2" value="保存">
                                    <input type="button" id="btnReturn" name="button" class="btn btn82 btn_res" value="返回">
                                </td>
                            </tr>
                        </table> 
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section jssection{
   
 
  <script src="~/Content/assets/plugins/validator/validator.js"></script> 
    <script src="~/Content/assets/app/SysTemplate/SysTemplateedit.js"></script>
    
    <script> 
        KindEditor.ready(function (K) {
            window.editor = K.create('#TemplateContent', {
                resizeType: 1,
                allowPreviewEmoticons: false,
                allowImageUpload: false,
                minWidth: 350,
                allowFileManager: false,
                afterBlur: function () { this.sync(); }
            });
        });
    </script>
  

  
}